/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package dongbai.soft.utils;

/**
 * 常量
 *
 * @author Mark sunlightcs@gmail.com
 */
public class Constant {

    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String SIZE = "size";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     * 升序
     */
    public static final String ASC = "asc";
    /**
     * 登录失败
     */
    public static String LOGIN_FAILED = "登录失败";

    //登录成功
    public static String LOGIN_SUCCESS = "登录成功";

    //token查询
    public static String REDIS_TOKEN = "token:";

    //利润查询
    public static String PROFIT = "Profit";

    //分站的利润信息
    public static String TR_LINE = "Line:";

    //分站的单数信息
    public static String TR_BAR = "Bar:";

    //财务中心的日历饼图信息
    public static String CAL_PIE = "CalPie";

    //商品的进货信息
    public static String PRO_NUM = "Product:innum";
    public static String PRO_PRICE = "Product:inprice";


    //修改密码时密码错误
    public static String CPWD_FAILED = "登录失败";

    //redis缓存过期时间
    public static long EXPIRE_TIME = 1;

    //新账号默认密码
    public static String DEFALULT_PWD = "dongbai";

    //账号状态——0离职，1在职
    public static boolean STATE_Y = true;
    public static boolean STATE_N = false;

    /**
     * 用户
     */
    public static String USER_DUP = "已存在该用户名！";


    /**
     * 供应商
     */
    //添加
    public static String ADD_SUCCESS = "添加成功！";
    public static String SUP_DUP = "已存在该供应商名！";
    //删除
    public static String SDEL_SUCCESS = "删除成功！";
    public static String SDEL_FAILED = "删除失败！";

    /**
     * 分类管理
     */
    public static String TYPE_DUP = "已存在该分类名";
    public static String TDEL_FAILD = "类别下存在商品";

    /**
     * 商品管理
     */
    public static String PRO_DUP = "已存在该商品名";

    /**
     * 配送员管理
     */
    public static String DEV_DUP = "已存在该配送员";

    /**
     * 状态管理
     */
    public static int ORUN = 0;
    public static int OEND = 1;
    public static int OPAID = 2;


}
